<div class="hp-tab-newprd">
    <?php if(!is_iframe()){?>
        <ul class="j-sw-nav">
            <li class="newprd-s1 tab-li on"><a href="javascript:void(0)">查看</a></li>
            <li class="newprd-s2 tab-li"><a href="javascript:void(0)">添加</a></li>
        </ul>
    <?php }?>

    <div class="newprd-s1">
        <div class="table-div">
            <div class="search-div">
                <div class="farmer-search small-input" style="height: 35px"><div class="search-label">农户信息:</div><?php print render($form['province']);print render($form['city']);print render($form['county']); print render($form['farmer']);?></div>
                <?php if(!empty($_GET['plant_info_id'])) {?>
                <div class="small-input" style="clear:both"><div class="search-label">作物名称:</div><?php print render($form['plant']); ?></div>
                <?php }?>
                <div class="search-submit"><?php print render($form['submit']); ?></div>
            </div>
            <img class="res-search" style="clear:both" src='<?php echo base_path();?>sites/all/themes/tweme/images/images/res.png'>
            <div class="table-div">
                <?php print render($form['table']); ?>
            </div>
        </div>
    </div>
    <div class="newprd-s2" style="display: none;"><div class="table-div"><iframe marginwidth=0 marginheight=0 width=800px height=600 frameborder=0 src="<?php echo base_path();?>farmer/fertilization/add?<?php echo isset($_GET['plant_info_id']) ? 'plant_info_id='.$_GET['plant_info_id'] :'soil_info_id='.$_GET['soil_info_id']; ?>/iframe"></iframe></div></div>
    <div class="newprd-s7" style="display: none;"><div class="table-div"><iframe marginwidth=0 marginheight=0 width=800px height=600 frameborder=0 src=""></iframe></div></div>
</div>

<?php print drupal_render_children($form); ?>

